import request from '@/utils/request'

// 从配置中获取业务的地址
import { baseUrlConfig } from '@/config/config'
const basePath = baseUrlConfig.businessBaseUrl

export interface PageListType {
    pageNum?: number;
    pageSize?: number;
    condition?:{
        columns?: string,
        houseCode?: string,
        houseName?: string,
        houseType?: string,
        id?: number,
        order: [
          {
            column?: string,
            method?: string
          }
        ],
        region?: string,
        state?: string
    }
  }

/*
* 获取分页列表
* @param data
*/
export const housePageList: (data: PageListType) => Promise<[]> = (data: PageListType) => {
  return request({
    url: basePath + '/house/find/page',
    method: 'post',
    data
  })
}
